package com.nlp.server.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 大模型查询实体类
 * @author shiliuyinzhen
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class ChatQueryParams implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 用户id */
    private String userId;

    /** 对话id */
    private String chatId;

    /** 状态 */
    private Integer status;

    /** 用的问题 */
    private String query;

    /** 历史会话记录 */
    private List<ChatBaseMessage> historyChat;

    @Override
    public String toString() {
        return "{" +
                "\"uid\":\"" + userId + '\"' +
                ", \"cid\":\"" + chatId + '\"' +
                ", \"status\":" + status +
                ", \"query\":\"" + query + '\"' +
                ", \"history_chat\":" + historyChat.toString() +
                '}';
    }
}
